class Update1 < ActiveRecord::Migration
  def self.up
    remove_column :fatture_fornitore, :created_by
    remove_column :fatture_fornitore, :updated_by
    remove_column :fatture_fornitore, :created_at
    remove_column :fatture_fornitore, :updated_at
    add_column :fatture_fornitore, :created_by, :integer
    add_column :fatture_fornitore, :updated_by, :integer
    add_column :fatture_fornitore, :created_at, :datetime
    add_column :fatture_fornitore, :updated_at, :datetime
    add_column :fatture_fornitore, :deleted_at, :datetime

    remove_column :fornitori, :created_by
    remove_column :fornitori, :updated_by
    remove_column :fornitori, :created_at
    remove_column :fornitori, :updated_at
    add_column :fornitori, :created_by, :integer
    add_column :fornitori, :updated_by, :integer
    add_column :fornitori, :created_at, :datetime
    add_column :fornitori, :updated_at, :datetime
    add_column :fornitori, :deleted_at, :datetime

    remove_column :metodi_pagamento, :created_by
    remove_column :metodi_pagamento, :updated_by
    remove_column :metodi_pagamento, :created_at
    remove_column :metodi_pagamento, :updated_at
    add_column :metodi_pagamento, :created_by, :integer
    add_column :metodi_pagamento, :updated_by, :integer
    add_column :metodi_pagamento, :created_at, :datetime
    add_column :metodi_pagamento, :updated_at, :datetime
    add_column :metodi_pagamento, :deleted_at, :datetime

    remove_column :note_automezzo, :created_by
    remove_column :note_automezzo, :updated_by
    remove_column :note_automezzo, :created_at
    remove_column :note_automezzo, :updated_at
    add_column :note_automezzo, :created_by, :integer
    add_column :note_automezzo, :updated_by, :integer
    add_column :note_automezzo, :created_at, :datetime
    add_column :note_automezzo, :updated_at, :datetime
    add_column :note_automezzo, :deleted_at, :datetime

    remove_column :note_cliente, :created_by
    remove_column :note_cliente, :updated_by
    remove_column :note_cliente, :created_at
    remove_column :note_cliente, :updated_at
    add_column :note_cliente, :created_by, :integer
    add_column :note_cliente, :updated_by, :integer
    add_column :note_cliente, :created_at, :datetime
    add_column :note_cliente, :updated_at, :datetime
    add_column :note_cliente, :deleted_at, :datetime

    remove_column :note_fornitore, :created_by
    remove_column :note_fornitore, :updated_by
    remove_column :note_fornitore, :created_at
    remove_column :note_fornitore, :updated_at
    add_column :note_fornitore, :created_by, :integer
    add_column :note_fornitore, :updated_by, :integer
    add_column :note_fornitore, :created_at, :datetime
    add_column :note_fornitore, :updated_at, :datetime
    add_column :note_fornitore, :deleted_at, :datetime

  end

  def self.down
  end
end
